import request from '@/utils/request'

// 定义公共的api
const BASE_URL = '/admin/system/sysLoginLog';

export default{

  findAll(){
    return request({
      url:`${BASE_URL}/findAll`,
      method: 'get'
    })
  },
  getLoginLogPageInfo(page,limit,searchObj){
    return request({
      url:`${BASE_URL}/page`,
      method: 'post',
      data: {
        pageNum: page,
        pageSize: limit,
        username: searchObj
      }
    })
  },
  findById(id){
    return request({
      url:`${BASE_URL}/get/${id}`,
      method: 'get'
    })
  },
  removeLoginLogById(id){
    return request({
      url:`${BASE_URL}/removeLoginLog/${id}`,
      method: 'delete'
    })
  },
  //批量 删除
  removeLoginLogByIds(ids) {
    return request({
      url: `${BASE_URL}/removeLoginLogByIds`,
      method: 'delete', // 提交方式
      data: ids
    })
  },
}


